What is the Network Simulator?
Well this is the way they define it
Ns is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.
I have a few problems getting it up and running cause it requires you to have many libraries. I will make it easy for you: you can download all of them together
http://jaist.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.29.2.tar.gz
What is better about this is that it has everything nicely set for you, all you need to run is the install.sh file, and it will do the rest.It will output a few variables that you need to set as environment variables to get NS2 running. And yes, don't forget to add NS2 to your $PATH variable.
I will list them here again just to make it clear
PATH=$PATH":/[INSTALL FOLDER]/ns-allinone-2.29/bin:/[INSTALL FOLDER]/ns-allinone-2.29/tcl8.4.11/unix:/[INSTALL FOLDER]/ns-allinone-2.29/tk8.4.11/unix"
export TCL_LIBRARY=/[INSTALL FOLDER]/ns-allinone-2.29/tcl8.4.11/library
export LD_LIBRARY_PATH=/[INSTALL FOLDER]/ns-allinone-2.29/otcl-1.11:/[INSTALL FOLDER]/ns-allinone-2.29/lib
Here [INSTALL FOLDER], is the folder where you extract the files from the .tar.gz file.
Hope you have fun testing out NS2.


0 Comments:
Post a Comment
<< Home